Skip to content

fix(release-please): retry a transient failure before arming auto-merge - #103

Merged
Andreas-Garcia merged 1 commit into
mainfrom
feature/release-please-retry
Dec 1, 2026
Merged

Andreas-Garcia merged 1 commit into
mainfrom
feature/release-please-retry

Conversation

@Andreas-Garcia

Copy link
Copy Markdown
Member

Summary

A single failed release-please-action run left the release PR open and unarmed, and nothing re-triggers the workflow (it only runs on pushes to main). The action is now retried once before arming auto-merge.

Incident: agent-config-btmt run 46705650864 (2026-12-01). release-please opened PR #112 and labelled it, then failed with an empty error (release-please failed: ). The arming step was skipped, so #112 stayed open until the failed job was rerun by hand. The same workflow at the same pin had succeeded two hours earlier, so the failure was transient.

Changes

  • .github/workflows/release-please.yml: the first release-please-action run uses continue-on-error: true. If it fails, the job waits 20 s and runs the action again (release-retry). The arming step reads RELEASE_PRS from the first run when it succeeded, otherwise from the retry.
  • If both attempts fail the job fails and nothing is armed, as before.
  • README.md: documents the retry and why arming waits for a successful run.
  • Not changed: release/arm-release-pr-auto-merge.py already unions the action's output with the label listing and handles the clean direct-merge case.

Rejected alternative: arming even when release-please fails (if: always()). release-please updates the branch before the PR title/body, so a failure between the two could arm a PR whose title (the squash commit, then the tag) does not match its branch.

Test plan

  • actionlint .github/workflows/release-please.yml: clean.
  • Independent review of the committed range: no findings. Checked outcome vs conclusion, job result and arm-step condition in the three cases (first run ok, first fails and retry ok, both fail), the &&/|| expression with an empty prs, and idempotence of a second run against an already-open release PR.
  • Not run: the retry path itself. Follow-up after merge: pin release-automation-sandbox-20261106 on the released commit and force the first attempt to fail on a throwaway branch.

Screenshots

N/A

Risk

Intent change, depth standard: a reusable release workflow used by about 16 repositories, but the diff is localized and the first-run success path is unchanged. Not breaking. Callers get the retry only after bumping their release-please.yml pin. A first attempt that hangs (rather than fails) still hits the existing 5-minute job timeout, as before.

How to revert

Revert the squash commit and publish a new release; callers that already bumped their pin keep working with either version.

Deployment notes

No migration or environment change. Merging a fix: into this release-please repository (release_please: auto_merge) starts release v6.7.2 through CI. Callers then bump the pin in a separate step, which is not part of this PR.

…arming auto-merge

A single failed release-please-action run (empty error, GitHub API) left the
release PR open and unarmed, and nothing re-triggers the workflow. Retry once
after a pause; arm auto-merge only after a successful run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Andreas-Garcia
Andreas-Garcia enabled auto-merge (squash) December 1, 2026 18:35
@Andreas-Garcia
Andreas-Garcia merged commit 27f489c into main Dec 1, 2026
12 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the feature/release-please-retry branch December 1, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant